package com.lqzs.businessmanager.utils;

import com.lqzs.businessmanager.bean.ReplyInfo
import com.lqzs.businessmanager.dao.AccessDataBase
import kotlinx.coroutines.runBlocking

class JavaCallKotlinUtil {

    fun callSuspendUpdateReplayContentById(id: String, replayContent: String) {
        runBlocking {
            AccessDataBase.getDataBase().replayDao().updateReplayContentById(id, replayContent)
        }
    }

    fun callSuspendGetAll(platformName: String, branchId: Int): MutableList<ReplyInfo> {
        return runBlocking {AccessDataBase.getDataBase().replayDao().getAll(platformName, branchId)}
    }
}
